﻿@model WeProjectsModel.Resource

@{
    ViewBag.Title = "Details";
}
<style type="text/css">
    table tr td:first-child {
        width: 80px;
    }

    table td {
        padding-left: 10px;
        text-align: left !important;
    }
</style>

<h2>资源详细</h2>
<p class="buttonIn">
    @if (Roles.IsUserInRole("sysadmin"))
    {
        @Html.ActionLink("编辑", "Edit", new { id = Model.ID })}
    @Html.ActionLink("返回列表", "Index")
</p>

<fieldset>

    <div class="form-group">
        <label class="control-label width-70p text-right marginR-10p">标题</label>
        @Html.DisplayFor(model => model.Title)
    </div>
    <div class="form-group">
        <label class="control-label width-70p text-right marginR-10p">文件容量</label>
        @Html.DisplayFor(model => model.Size) KB
    </div>
    <div class="form-group">
        <label class="control-label width-70p text-right marginR-10p">上传时间</label>
        @Html.DisplayFor(model => model.UploadDateTime)
    </div>
    <div class="form-group">
        <label class="control-label width-70p text-right marginR-10p">说明</label>
        @Html.Raw(Model.Description)
    </div>
    <div class="form-group">
        <label class="control-label width-70p text-right marginR-10p">文件名</label>
        @Html.ActionLink(Model.FileName, "Download", new { id = Model.ID })
    </div>
</fieldset>

